package com.yjs.ppjokedemo.login;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

import com.google.android.material.button.MaterialButton;
import com.yjs.ppjokedemo.R;

public class LoginActivity extends AppCompatActivity implements View.OnClickListener {

    private ImageView actionClose;
    private MaterialButton actionLogin;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        initView();
        actionClose.setOnClickListener(this);
        actionLogin.setOnClickListener(this);
    }

    private void initView() {
        actionClose = (ImageView) findViewById(R.id.action_close);
        actionLogin = (MaterialButton) findViewById(R.id.action_login);
    }

    @Override
    public void onClick(View v) {

        if (v.getId() == R.id.action_close){
            finish();
        } else if (v.getId() == R.id.action_login) {
            login();
        }
    }

    private void login() {

    }
}